package com.zhou.spring.cloud.balancer.feign;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

@FeignClient("cloud-server")
public interface TestFegin {

    @RequestMapping(value = "/test/retry/{str}", method = RequestMethod.GET)
    String echo(@PathVariable String str);

    @RequestMapping(value = "/test/timeout", method = RequestMethod.GET)
    String testtTimout();

    @RequestMapping(value = "/test/testException", method = RequestMethod.GET)
    String testException();
}
